package People;

import Config.Config;

/**
 * Models an animal inheriting of People
 * 
 * @author Amir BEN SLIMANE
 */
public class Animal extends People {
	protected boolean isSavage;

	/**
	 * Builder's Animal
	 * 
	 * @param status Health's Animal
	 * @param isSavage Life style's Animal
	 */
	public Animal(Status status, boolean isSavage) {
		super(status);
		this.status = status;
		this.sexe = sexeRandom();
		this.isSavage = isSavage;
		if (this.isSavage) {
			this.infectionRate = Config.INFECTION_RATE_SAVAGE;
		} else {
			this.infectionRate = Config.INFECTION_RATE_UNSAVAGE;
		}
	}

	/**
	 * Returns life style of Animal
	 * 
	 * @return isSavge Life style's Animal
	 */
	public boolean isSavage() {
		return isSavage;
	}

	/**
	 * Changes life style of Animal
	 * 
	 * @param isSavage Life style's Animal
	 */
	public void setSavage(boolean isSavage) {
		this.isSavage = isSavage;
	}
	
	public void baba(){}
	
}
